import { RouteRecordRaw } from 'vue-router';

export type ExtendedRouteRecordRaw = RouteRecordRaw & {
  meta?: {
    icon?: string;
  };
};

export type DataNode = {
  [key: string]: string | DataNode | DataNode[] | string[];
};

export type TransformResult = {
  menus: string[];
  perms: string[];
};

export type SettingStore = {
  asideCollapse: boolean;
};

export type OptionType = {
  value: string;
  label: string;
};

export type BreadcrumbItem = {
  title: string;
  icon: {
    type: string;
    name: string;
  };
  path: {
    path: string;
    query?: Record<string, any>;
  };
};
